<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_account_chat', function (Blueprint $table) {
            $table->id();
            $table->string('corp_id')->default('')->comment('企业ID');
            $table->string('user_id')->default('')->comment('发送成员ID');
            $table->string('chat_id')->default('')->comment('群ID');
            $table->string('status')->default(0)->comment('0 - 跟进人正常1 - 跟进人离职2 - 离职继承中3 - 离职继承完成');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_account_chat');
    }
};
